<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Route_way extends Admin_Controller {

	/** Begin: Config **/
	
	// Config List view
	protected $list_view_order_name = 'name';
	protected $list_view_order_direction = 'ASC';
	protected $list_view_searched_fields = array(
			'name'			=>	'Tên chiều'
		);
	protected $list_search_filter = array();
	protected $fields =  array(
				'route_id'		=>	array(
									'text'	=>	'Tuyến',
									'type'	=>	'select',
									'form_view' => array(
										'data_table'			=>	ROUTE_TABLE,
										'condition'				=>	'',
										'parent_text'			=>	'luot_di',
										'default_parent_text'	=>	'Chọn tuyến'
									)
								),
				'is_start_way'	=>	array(
									'text'	=>	'Là chiều đi',
									'type'	=>	'checkbox',
									'form_view'=>array(
										'type'	=>	'checkbox'
									)
								),
				'name'			=>	array(
									'text'	=>	'Tên chiều',
									'type'	=>	'text',
									'list_view'=>array(
										'is_show_link'	=>	true
									),
									'form_view'=>array(
										'validate_type'=> 'required : true'
									)
								)			
				
			);
	// Config Form view
	
	/*------------------------------------ Admin Control Panel ------------------------------------*/
	
	/*------------------------------------ End Admin Control Panel --------------------------------*/
	
	
	/*------------------------------------ FRONTEND ------------------------------------*/
	
	/*------------------------------------ End FRONTEND --------------------------------*/
}